﻿using System.Runtime.Remoting.Contexts;

namespace CallTraceSample
{
    class CallTraceAttribute : ContextAttribute
    {
        public CallTraceAttribute() : base("CallTraceAttribute") { }

        public override void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg)
        {
            ctorMsg.ContextProperties.Add(new CallTraceProperty());
        }
    }
}
